package com.antis.olsl.main.adapter;

import com.antis.olsl.main.R;
import com.antis.olsl.main.bean.HomePageMenuInfo;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.List;

/**
 * @ProjectName: ATS_OLSL
 * @Package: com.antis.olsl.adapter
 * @ClassName: A_ExampleAdapter
 * @Description: 示范类Adapter
 * @Author: 羊琪
 * @CreateDate: 2020/3/30 19:58
 * @UpdateDate: 2020/3/30 19:58
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class FunctionSearchMenuAdapter extends BaseQuickAdapter<HomePageMenuInfo, BaseViewHolder> {
    public FunctionSearchMenuAdapter(List<HomePageMenuInfo> data) {
        super(R.layout.listitem_function_search_result, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HomePageMenuInfo item) {
        helper.setText(R.id.tv_title, item.getResult());
        helper.setImageResource(R.id.imageView, item.getImageId());
    }
}
